package com.aliengen.thingple.driverapp.data.models;

import java.io.Serializable;

/**
 * This class is part of the Thingple mobile application for the CMC168 Handheld reader.
 *
 * Copyright AlienGen Limited 2016. All rights reserved.
 *
 * @author Timothé Mermet-Buffet <tim@aliengen.com>
 */
public class Anomaly  implements Serializable {
    private String phase;
    private String controlPoint;
    private CylinderTag cylinder;
    private int truck_id;

    public Anomaly(String phase, String controlPoint, CylinderTag cylinder, int truck_id)
    {
        this.phase = phase;
        this.controlPoint = controlPoint;
        this.cylinder = cylinder;
        this.truck_id = truck_id;
    }

    public String getPhase() { return this.phase; }
    public String getControlPoint() { return this.controlPoint; }
    public CylinderTag getCylinder() { return this.cylinder; }
    public String getHuashenNumber() { return this.cylinder.getReference(); }
    public int getTruckId() { return this.truck_id; }
}
